package com.ml.mall.bean.req.company;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 *   @description    :description 
 *   @author         :zxm
 *   @date           :2021/5/13
 *   @version        :1.0
**/
@ApiModel(description = "配送类")
@Data
public class CompanyLogisticsInfoDto {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "运费")
//    @NotNull(message = "运费不能为空")
    private BigDecimal deliveryCharge;

    @ApiModelProperty(value = "起购金额")
//    @NotNull(message = "起购金额不能为空")
    private BigDecimal deliveryMoq;

    @ApiModelProperty(value = "配送时间开始")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date deliveryTimeFrom;

    @ApiModelProperty(value = "配送时间结束 格式HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date deliveryTimeTo;
}
